package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OverhaulOrdernoMapper;
import com.ruoyi.system.domain.OverhaulOrderno;
import com.ruoyi.system.service.IOverhaulOrdernoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 大修工单Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-29
 */
@Service
public class OverhaulOrdernoServiceImpl implements IOverhaulOrdernoService 
{
    @Autowired
    private OverhaulOrdernoMapper overhaulOrdernoMapper;

    /**
     * 查询大修工单
     * 
     * @param id 大修工单主键
     * @return 大修工单
     */
    @Override
    public OverhaulOrderno selectOverhaulOrdernoById(Long id)
    {
        return overhaulOrdernoMapper.selectOverhaulOrdernoById(id);
    }

    /**
     * 查询大修工单列表
     * 
     * @param overhaulOrderno 大修工单
     * @return 大修工单
     */
    @Override
    public List<OverhaulOrderno> selectOverhaulOrdernoList(OverhaulOrderno overhaulOrderno)
    {
        return overhaulOrdernoMapper.selectOverhaulOrdernoList(overhaulOrderno);
    }

    /**
     * 新增大修工单
     * 
     * @param overhaulOrderno 大修工单
     * @return 结果
     */
    @Override
    public int insertOverhaulOrderno(OverhaulOrderno overhaulOrderno)
    {
        return overhaulOrdernoMapper.insertOverhaulOrderno(overhaulOrderno);
    }

    /**
     * 修改大修工单
     * 
     * @param overhaulOrderno 大修工单
     * @return 结果
     */
    @Override
    public int updateOverhaulOrderno(OverhaulOrderno overhaulOrderno)
    {
        return overhaulOrdernoMapper.updateOverhaulOrderno(overhaulOrderno);
    }

    /**
     * 批量删除大修工单
     * 
     * @param ids 需要删除的大修工单主键
     * @return 结果
     */
    @Override
    public int deleteOverhaulOrdernoByIds(String ids)
    {
        return overhaulOrdernoMapper.deleteOverhaulOrdernoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除大修工单信息
     * 
     * @param id 大修工单主键
     * @return 结果
     */
    @Override
    public int deleteOverhaulOrdernoById(Long id)
    {
        return overhaulOrdernoMapper.deleteOverhaulOrdernoById(id);
    }
}
